using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsTagMemMutilSetResponse : GeneratedMessageLite<SnsTagMemMutilSetResponse, SnsTagMemMutilSetResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsTagMemMutilSetResponse, SnsTagMemMutilSetResponse.Builder>
		{
			private bool resultIsReadOnly;
			private SnsTagMemMutilSetResponse result;
			protected override SnsTagMemMutilSetResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsTagMemMutilSetResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsTagMemMutilSetResponse DefaultInstanceForType
			{
				get
				{
					return SnsTagMemMutilSetResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public string ModUserName
			{
				get
				{
					return this.result.ModUserName;
				}
				set
				{
					this.SetModUserName(value);
				}
			}
			public uint Count
			{
				get
				{
					return this.result.Count;
				}
				set
				{
					this.SetCount(value);
				}
			}
			public IPopsicleList<SKBuiltinUint64_t> TagIdListList
			{
				get
				{
					return this.PrepareBuilder().tagIdList_;
				}
			}
			public int TagIdListCount
			{
				get
				{
					return this.result.TagIdListCount;
				}
			}
			public Builder()
			{
				this.result = SnsTagMemMutilSetResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsTagMemMutilSetResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsTagMemMutilSetResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsTagMemMutilSetResponse other = this.result;
					this.result = new SnsTagMemMutilSetResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsTagMemMutilSetResponse.Builder Clear()
			{
				this.result = SnsTagMemMutilSetResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsTagMemMutilSetResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsTagMemMutilSetResponse.Builder(this.result);
				}
				return new SnsTagMemMutilSetResponse.Builder().MergeFrom(this.result);
			}
			public override SnsTagMemMutilSetResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsTagMemMutilSetResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsTagMemMutilSetResponse)
				{
					return this.MergeFrom((SnsTagMemMutilSetResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsTagMemMutilSetResponse.Builder MergeFrom(SnsTagMemMutilSetResponse other)
			{
				return this;
			}
			public override SnsTagMemMutilSetResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsTagMemMutilSetResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsTagMemMutilSetResponse._snsTagMemMutilSetResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsTagMemMutilSetResponse._snsTagMemMutilSetResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 18u)
						{
							this.result.hasModUserName = input.ReadString(ref this.result.modUserName_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasCount = input.ReadUInt32(ref this.result.count_);
							continue;
						}
						if (num3 == 34u)
						{
							input.ReadMessageArray<SKBuiltinUint64_t>(num, text, this.result.tagIdList_, SKBuiltinUint64_t.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder SetModUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasModUserName = true;
				this.result.modUserName_ = value;
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder ClearModUserName()
			{
				this.PrepareBuilder();
				this.result.hasModUserName = false;
				this.result.modUserName_ = "";
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder SetCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCount = true;
				this.result.count_ = value;
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder ClearCount()
			{
				this.PrepareBuilder();
				this.result.hasCount = false;
				this.result.count_ = 0u;
				return this;
			}
			public SKBuiltinUint64_t GetTagIdList(int index)
			{
				return this.result.GetTagIdList(index);
			}
			public SnsTagMemMutilSetResponse.Builder SetTagIdList(int index, SKBuiltinUint64_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.tagIdList_[index] = value;
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder SetTagIdList(int index, SKBuiltinUint64_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.tagIdList_[index] = builderForValue.Build();
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder AddTagIdList(SKBuiltinUint64_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.tagIdList_.Add(value);
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder AddTagIdList(SKBuiltinUint64_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.tagIdList_.Add(builderForValue.Build());
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder AddRangeTagIdList(IEnumerable<SKBuiltinUint64_t> values)
			{
				this.PrepareBuilder();
				this.result.tagIdList_.Add(values);
				return this;
			}
			public SnsTagMemMutilSetResponse.Builder ClearTagIdList()
			{
				this.PrepareBuilder();
				this.result.tagIdList_.Clear();
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int ModUserNameFieldNumber = 2;
		public const int CountFieldNumber = 3;
		public const int TagIdListFieldNumber = 4;
		private static readonly SnsTagMemMutilSetResponse defaultInstance;
		private static readonly string[] _snsTagMemMutilSetResponseFieldNames;
		private static readonly uint[] _snsTagMemMutilSetResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasModUserName;
		private string modUserName_ = "";
		private bool hasCount;
		private uint count_;
		private PopsicleList<SKBuiltinUint64_t> tagIdList_ = new PopsicleList<SKBuiltinUint64_t>();
		private int memoizedSerializedSize = -1;
		public static SnsTagMemMutilSetResponse DefaultInstance
		{
			get
			{
				return SnsTagMemMutilSetResponse.defaultInstance;
			}
		}
		public override SnsTagMemMutilSetResponse DefaultInstanceForType
		{
			get
			{
				return SnsTagMemMutilSetResponse.DefaultInstance;
			}
		}
		protected override SnsTagMemMutilSetResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public string ModUserName
		{
			get
			{
				return this.modUserName_;
			}
		}
		public uint Count
		{
			get
			{
				return this.count_;
			}
		}
		public IList<SKBuiltinUint64_t> TagIdListList
		{
			get
			{
				return this.tagIdList_;
			}
		}
		public int TagIdListCount
		{
			get
			{
				return this.tagIdList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseResponse)
				{
					return false;
				}
				if (!this.hasCount)
				{
					return false;
				}
				if (!this.BaseResponse.IsInitialized)
				{
					return false;
				}
				bool result;
				using (IEnumerator<SKBuiltinUint64_t> enumerator = this.TagIdListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SKBuiltinUint64_t current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							result = false;
							return result;
						}
					}
					return true;
				}
				return result;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasModUserName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ModUserName);
				}
				if (this.hasCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Count);
				}
				using (IEnumerator<SKBuiltinUint64_t> enumerator = this.TagIdListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SKBuiltinUint64_t current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(4, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsTagMemMutilSetResponse()
		{
		}
		public SKBuiltinUint64_t GetTagIdList(int index)
		{
			return this.tagIdList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsTagMemMutilSetResponseFieldNames = SnsTagMemMutilSetResponse._snsTagMemMutilSetResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, snsTagMemMutilSetResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasModUserName)
			{
				output.WriteString(2, snsTagMemMutilSetResponseFieldNames[2], this.ModUserName);
			}
			if (this.hasCount)
			{
				output.WriteUInt32(3, snsTagMemMutilSetResponseFieldNames[1], this.Count);
			}
			if (this.tagIdList_.Count > 0)
			{
				output.WriteMessageArray<SKBuiltinUint64_t>(4, snsTagMemMutilSetResponseFieldNames[3], this.tagIdList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasModUserName)
			{
				num ^= this.modUserName_.GetHashCode();
			}
			if (this.hasCount)
			{
				num ^= this.count_.GetHashCode();
			}
			using (IEnumerator<SKBuiltinUint64_t> enumerator = this.tagIdList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					SKBuiltinUint64_t current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SnsTagMemMutilSetResponse snsTagMemMutilSetResponse = value as SnsTagMemMutilSetResponse;
			if (snsTagMemMutilSetResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != snsTagMemMutilSetResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(snsTagMemMutilSetResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasModUserName != snsTagMemMutilSetResponse.hasModUserName || (this.hasModUserName && !this.modUserName_.Equals(snsTagMemMutilSetResponse.modUserName_)))
			{
				return false;
			}
			if (this.hasCount != snsTagMemMutilSetResponse.hasCount || (this.hasCount && !this.count_.Equals(snsTagMemMutilSetResponse.count_)))
			{
				return false;
			}
			if (this.tagIdList_.Count != snsTagMemMutilSetResponse.tagIdList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.tagIdList_.Count; i++)
			{
				if (!this.tagIdList_[i].Equals(snsTagMemMutilSetResponse.tagIdList_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsTagMemMutilSetResponse, SnsTagMemMutilSetResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<SnsTagMemMutilSetResponse, SnsTagMemMutilSetResponse.Builder>.PrintField("ModUserName", this.hasModUserName, this.modUserName_, writer);
			GeneratedMessageLite<SnsTagMemMutilSetResponse, SnsTagMemMutilSetResponse.Builder>.PrintField("Count", this.hasCount, this.count_, writer);
			GeneratedMessageLite<SnsTagMemMutilSetResponse, SnsTagMemMutilSetResponse.Builder>.PrintField<SKBuiltinUint64_t>("TagIdList", this.tagIdList_, writer);
		}
		public static SnsTagMemMutilSetResponse ParseFrom(byte[] data)
		{
			return SnsTagMemMutilSetResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsTagMemMutilSetResponse MakeReadOnly()
		{
			this.tagIdList_.MakeReadOnly();
			return this;
		}
		public static SnsTagMemMutilSetResponse.Builder CreateBuilder()
		{
			return new SnsTagMemMutilSetResponse.Builder();
		}
		public override SnsTagMemMutilSetResponse.Builder ToBuilder()
		{
			return SnsTagMemMutilSetResponse.CreateBuilder(this);
		}
		public override SnsTagMemMutilSetResponse.Builder CreateBuilderForType()
		{
			return new SnsTagMemMutilSetResponse.Builder();
		}
		public static SnsTagMemMutilSetResponse.Builder CreateBuilder(SnsTagMemMutilSetResponse prototype)
		{
			return new SnsTagMemMutilSetResponse.Builder(prototype);
		}
		static SnsTagMemMutilSetResponse()
		{
			SnsTagMemMutilSetResponse.defaultInstance = new SnsTagMemMutilSetResponse().MakeReadOnly();
			SnsTagMemMutilSetResponse._snsTagMemMutilSetResponseFieldNames = new string[]
			{
				"BaseResponse",
				"Count",
				"ModUserName",
				"TagIdList"
			};
			SnsTagMemMutilSetResponse._snsTagMemMutilSetResponseFieldTags = new uint[]
			{
				10u,
				24u,
				18u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.SnsTagMemMutilSetResponse.Descriptor, null);
		}
	}
}
